/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.penguin.modules.field.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.penguin.modules.field.entity.FieldCustomer;
import com.thinkgem.jeesite.modules.sys.entity.User;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 日常任务生成Entity
 * @author 余小凡
 * @version 2015-05-22
 */
public class FieldDailyTask extends DataEntity<FieldDailyTask> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 标题
	private FieldCustomer pos;		// 商家pos机
	private String type;		// 任务类型
	private User user;		// 执行人
	private String executeTime;		// 执行时间
	private String contact;		// 联系人
	private String phone;		// 联系电话
	private User audit;		// 审核人
	private String state;		// 状态
	private String address;		//任务地址
	private FieldCustomer customer;		// 商家
	private String sn;		// S\N码
	private String code;		// 自定义编码
	private String pcode;		// 机器编码
	private String brcode;		// 工行资源编码
	private String version;		// 软件版本号
	public FieldDailyTask() {
		super();
	}

	public FieldDailyTask(String id){
		super(id);
	}

	@Length(min=0, max=50, message="标题长度必须介于 0 和 50 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public FieldCustomer getPos() {
		return pos;
	}

	public void setPos(FieldCustomer pos) {
		this.pos = pos;
	}
	
	@Length(min=0, max=5, message="任务类型长度必须介于 0 和 5 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=20, message="执行时间长度必须介于 0 和 20 之间")
	public String getExecuteTime() {
		return executeTime;
	}

	public void setExecuteTime(String executeTime) {
		this.executeTime = executeTime;
	}
	
	public User getAudit() {
		return audit;
	}

	public void setAudit(User audit) {
		this.audit = audit;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public FieldCustomer getCustomer() {
		return customer;
	}

	public void setCustomer(FieldCustomer customer) {
		this.customer = customer;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPcode() {
		return pcode;
	}

	public void setPcode(String pcode) {
		this.pcode = pcode;
	}

	public String getBrcode() {
		return brcode;
	}

	public void setBrcode(String brcode) {
		this.brcode = brcode;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}
	
}